package com.totoro.tyrank.executor.action.impl;

import com.totoro.tyrank.constants.ActionConst;
import com.totoro.tyrank.executor.action.ActionExecutor;
import com.totoro.tyrank.utils.PapiUtil;
import com.totoro.tyrank.utils.StrUtil;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;

public class BcActionExecutor implements ActionExecutor {
    @Override
    public void execute(String actionText, Player player) {
        actionText = StrUtil.getContentAfter(actionText, ActionConst.BC);
        actionText = PapiUtil.parseStrPapiVariable(player, actionText);
        Bukkit.broadcastMessage(actionText);
    }
}
